import mcpi.minecraft as minecraft
import mcpi.block as block
mc = minecraft.Minecraft.create()
allIds = mc.getPlayerEntityIds()
x, y, z = mc.player.getTilePos()
print(x,y,z)
x, y, z = mc.entity.getTilePos(allIds[0])
print(x,y,z)
